package org.lex.util;

import org.lex.collection.ArrayTable;

public class DataHolder implements IDataHolder {
	private Object data = null;
	protected ArrayTable arrayTable = new ArrayTable();

	public Object getData() {
		return this.data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public Object getData(Object key) {
		return arrayTable.get(key);
	}

	public void setData(Object key, Object value) {
		arrayTable.put(key, value);
	}

	public boolean containsKey(Object key) {
		return arrayTable.containsKey(key);
	}

	public Object[] getKeys(Object[] keys) {
		return arrayTable.getKeys(keys);
	}

	public Object remove(Object key) {
		return arrayTable.remove(key);
	}
}
